package com.linghu.study.springbootshirojwtdemo.mapper;

import com.linghu.study.springbootshirojwtdemo.bean.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author:linghu
 * @date:
 * @version: 1.0.0
 * @description: roleMapper
 */
@Mapper
public interface RoleMapper {

    /**
     * 根据roleId拿role
     *
     * @param roleId roleId
     * @return role实例
     */
    @Select("select * from role where role_id = #{roleId}")
    Role getRoleById(int roleId);

}
